// 封装与订单相关的接口函数
import http from "@/utils/http"

//添加订单接口 
export const addOrderAPI = (data: any) => {
    return http({
        url: "/api/order/addOrder",
        method: "post",
        data
    })
}

// 查询订单数据接口
export const orderListAPI = (params: any) => {
    return http({
        url: "/api/order/confirmOrder",
        method: "get",
        params
    })
}